/*Actions apply for all site areas*/
$(document).ready(function(){
	// check selected menu
	$('#menu a').each(function(){
		var type = $(this).text();
		type = type.toLowerCase();
		url = window.location.href;
		if (url.indexOf('/'+type) != -1) {
			$(this).addClass('selected');
		}
	});
	
	// check selected menu specific
	$('#menu a').each(function(){
		var type = $(this).text();
		var subtype = 'tutorial-items';
		type = type.toLowerCase();
		url = window.location.href;
		if (url.indexOf('/'+subtype) != -1 && type == 'tutorials') {
			$(this).addClass('selected');
		}
	});
	
	
	$('#wp-admin-bar-wp-logo').remove();
	$('#wp-admin-bar-new-post').remove();	
});
